package fr.afcepf.ai89.esharing.data;

import java.util.Date;
import java.util.List;

import javax.ejb.Remote;

import fr.afcepf.ai89.esharing.entity.Aem;
import fr.afcepf.ai89.esharing.entity.CategorieAem;
import fr.afcepf.ai89.esharing.entity.FrCommune;
import fr.afcepf.ai89.esharing.entity.FrDepartement;
import fr.afcepf.ai89.esharing.entity.FrRegion;
import fr.afcepf.ai89.esharing.entity.Proprietaire;
import fr.afcepf.ai89.esharing.entity.TypeAem;
import fr.afcepf.ai89.esharing.entity.Valeur;
@Remote
public interface IDAOAem {
	
	Aem getAem(int idAem);
	
	List<Aem> getAems();
	List<Aem> getAems(String[] motsCles);
	List<Aem> getAems(Proprietaire prop);
	List<Aem> getAems(String[] motsCles, FrRegion region,
			FrDepartement dept, FrCommune commune, Long codePostal,
			Date dateDebut, Date dateFin, CategorieAem categorie,
			Valeur valeur);
	
	int addAem(Aem aem);
	int majAem(Aem aem);
	int retirerAem(Aem aem);

}
